package com.boot.export;

//import com.boot.export.program.pdf.ExportPDF;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;


@SpringBootApplication
public class BootManyExportApplication {
    private final static Logger log = LoggerFactory.getLogger(BootManyExportApplication.class);

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(BootManyExportApplication.class);
        Environment environment = run.getEnvironment();
        log.info("\n  Swagger2:      http://localhost:{}/swagger-ui.html", environment.getProperty("server.port"));


        // 导出pdf 内容 hello world
//        ExportPDF bean = run.getBean(ExportPDF.class);
//        bean.exportForHelloWorld();
        // 导出表格
//        bean.exportForSimpleTable();
        // 导出复杂表格
//        bean.exportForDifficultTable();
    }

}
